# operator function
# < 	less than
# <= 	less than or equal to
# > 	greater than
# >= 	greater than or equal to
# == 	equal
# != 	not equal

##########################################################

n = raw_input("Integer? ")
n = int(n)
if n < 0:
    print ("The absolute value of",n,"is",-n)
else:
    print ("The absolute value of",n,"is",n)

##########################################################

a = 0
while a < 10:
    a = a + 1
    if a > 5:
        print (a,">",5)
    elif a <= 7:
        print (a,"<=",7)
    else:
        print ("Neither test was true")

##########################################################

a = 0
while a < 10:
    a = a + 1
    if a > 5:
        print (a,">",5)
    else:
        if a <= 7:
            print (a,"<=",7)
        else:
            print ("Neither test was true")

##########################################################

answer = 23
question = 'What number am I thinking of?  '
print ('Let\'s play the guessing game!')
 
while True:
    guess = int(raw_input(question))
 
    if guess < answer:
        print ('Little higher')
    elif guess > answer:
        print ('Little lower')
    else: # guess == answer
        print ('MINDREADER!!!')
        break
    
##########################################################

while True:
	inp = raw_input(question)
	try:
		guess = int(inp)
	except ValueError:
		print('Your guess should be a number')
	else:  # else is optional clause!
		if guess < answer:
			print ('Little higher')
		elif guess > answer:
			print ('Little lower')
		else: # guess == answer
			print ('MINDREADER!!!')
			break
